package getWay

type State int16

// iota 初始化后会自动递增
const (
	BusinessError State = 1001
	OK            State = 1000
	Illegal       State = 9000
	LoginFailure  State = -1
)

func (t State) String() string {
	switch t {
	case BusinessError:
		return "business error"
	case OK:
		return "OK"
	case Illegal:
		return "非法请求"
	case LoginFailure:
		return "登陆失效"
	default:
		return "unknown"
	}
}
